package com.gz.moreaseManager.config;

import com.baomidou.mybatisplus.plugins.PaginationInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @文件名: MybatisPlusConfig
 * @版权:Copyright 2018-2020版权所有：ganz
 * @描述: mybatis-plus分页插件
 * @修改人: ganzheng
 * @修改时间: 16:45
 * @修改内容:新增
 */
@Configuration
public class MybatisPlusConfig {

    @Bean
    public PaginationInterceptor paginationInterceptor(){

        PaginationInterceptor page = new PaginationInterceptor();
        page.setDialectType("mysql");
        return page;
    }
}
